﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace caculate
{
    public partial class ngrade : Form
    {
        public ngrade()
        {
            InitializeComponent();
            Exc.NYON = new int[21];
            int i;
            int k = 0;
            for (i = 1; i <= 20; i++)
            {
                Exc.NYON[i] = 0;
            }
            if (Exc.NormalAnswer2[1] == Exc.NormalAnswer[1])
            { label1.Text = "正确！"; Exc.NYON[1] = 1; }
            else
                label1.Text = "错误！正解：" + Exc.NormalAnswer[1];
            if (Exc.NormalAnswer2[2] == Exc.NormalAnswer[2])
            { label2.Text = "正确！"; Exc.NYON[2] = 1; }
            else
                label2.Text = "错误！正解：" + Exc.NormalAnswer[2];
            if (Exc.NormalAnswer2[3] == Exc.NormalAnswer[3])
            { label3.Text = "正确！"; Exc.NYON[3] = 1; }
            else
                label3.Text = "错误！正解：" + Exc.NormalAnswer[3];
            if (Exc.NormalAnswer2[4] == Exc.NormalAnswer[4])
            { label4.Text = "正确！"; Exc.NYON[4] = 1; }
            else
                label4.Text = "错误！正解：" + Exc.NormalAnswer[4];
            if (Exc.NormalAnswer2[5] == Exc.NormalAnswer[5])
            { label5.Text = "正确！"; Exc.NYON[5] = 1; }
            else
                label5.Text = "错误！正解：" + Exc.NormalAnswer[5];
            if (Exc.NormalAnswer2[6] == Exc.NormalAnswer[6])
            { label6.Text = "正确！"; Exc.NYON[6] = 1; }
            else
                label6.Text = "错误！正解：" + Exc.NormalAnswer[6];
            if (Exc.NormalAnswer2[7] == Exc.NormalAnswer[7])
            { label7.Text = "正确！"; Exc.NYON[7] = 1; }
            else
                label7.Text = "错误！正解：" + Exc.NormalAnswer[7];
            if (Exc.NormalAnswer2[8] == Exc.NormalAnswer[8])
            { label8.Text = "正确！"; Exc.NYON[8] = 1; }
            else
                label8.Text = "错误！正解：" + Exc.NormalAnswer[8];
            if (Exc.NormalAnswer2[9] == Exc.NormalAnswer[9])
            { label9.Text = "正确！"; Exc.NYON[9] = 1; }
            else
                label9.Text = "错误！正解：" + Exc.NormalAnswer[9];
            if (Exc.NormalAnswer2[10] == Exc.NormalAnswer[10])
            { label10.Text = "正确！"; Exc.NYON[10] = 1; }
            else
                label10.Text = "错误！正解：" + Exc.NormalAnswer[10];
            if (Exc.NormalAnswer2[11] == Exc.NormalAnswer[11])
            { label11.Text = "正确！"; Exc.NYON[11] = 1; }
            else
                label11.Text = "错误！正解：" + Exc.NormalAnswer[11];
            if (Exc.NormalAnswer2[12] == Exc.NormalAnswer[12])
            { label12.Text = "正确！"; Exc.NYON[12] = 1; }
            else
                label12.Text = "错误！正解：" + Exc.NormalAnswer[12];
            if (Exc.NormalAnswer2[13] == Exc.NormalAnswer[13])
            { label13.Text = "正确！"; Exc.NYON[13] = 1; }
            else
                label13.Text = "错误！正解：" + Exc.NormalAnswer[13];
            if (Exc.NormalAnswer2[14] == Exc.NormalAnswer[14])
            { label14.Text = "正确！"; Exc.NYON[14] = 1; }
            else
                label14.Text = "错误！正解：" + Exc.NormalAnswer[14];
            if (Exc.NormalAnswer2[15] == Exc.NormalAnswer[15])
            { label15.Text = "正确！"; Exc.NYON[15] = 1; }
            else
                label15.Text = "错误！正解：" + Exc.NormalAnswer[15];
            if (Exc.NormalAnswer2[16] == Exc.NormalAnswer[16])
            { label16.Text = "正确！"; Exc.NYON[16] = 1; }
            else
                label16.Text = "错误！正解：" + Exc.NormalAnswer[16];
            if (Exc.NormalAnswer2[17] == Exc.NormalAnswer[17])
            { label17.Text = "正确！"; Exc.NYON[17] = 1; }
            else
                label17.Text = "错误！正解：" + Exc.NormalAnswer[17];
            if (Exc.NormalAnswer2[18] == Exc.NormalAnswer[18])
            { label18.Text = "正确！"; Exc.NYON[18] = 1; }
            else
                label18.Text = "错误！正解：" + Exc.NormalAnswer[18];
            if (Exc.NormalAnswer2[19] == Exc.NormalAnswer[19])
            { label19.Text = "正确！"; Exc.NYON[19] = 1; }
            else
                label19.Text = "错误！正解：" + Exc.NormalAnswer[19];
            if (Exc.NormalAnswer2[20] == Exc.NormalAnswer[20])
            { label20.Text = "正确！"; Exc.NYON[20] = 1; }
            else
                label20.Text = "错误！正解：" + Exc.NormalAnswer[20];
            for (i = 1; i <= 20; i++)
            {
                if (Exc.NYON[i] == 1)
                    k++;
            }
            label24.Text = k + "";
            label25.Text = (20 - k) + "";
            label26.Text = (k * 5) + "%";
        }

        private void ngrade_Load(object sender, EventArgs e)
        {

        }
    }

    


}
